package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 仓库信息对象 warehouse_info
 *
 * @author ruoyi
 * @date 2025-07-16
 */
@Getter
@Setter
@TableName(resultMap = "com.ruoyi.factorydata.mapper.WarehouseInfoMapper.WarehouseInfoResult")
public class WarehouseInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 仓库ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 仓库名称
     */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /**
     * 仓库编码
     */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /**
     * 仓库类型
     */
    @Excel(name = "仓库类型")
    private String warehouseType;

    /**
     * 仓库地址
     */
    @Excel(name = "仓库地址")
    private String address;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;

    @Excel(name = "创建者")
    @TableField(exist = false)
    private String createByName;

}